import { isIos } from 'config';

export const setPageTitle = (name) => {
  document.title = name;
  // hack ios设备无法修改title
  if(isIos) {
    var i = document.createElement('iframe');
    i.src = '/favicon.ico';
    i.style.display = 'none';
    i.onload = function() {
      setTimeout(function() {
        i.remove();
      }, 9)
    }
  }
}